package net.novasharper.icarus.rpgengine;

import org.newdawn.slick.opengl.Texture;

public class Structure {
	/**
	 * The realm in which {structure} resides
	 */
	private Map realm;
	/**
	 * The name of the structure
	 */
	private String name;
	/**
	 * The location of the structure
	 */
	private Location loc;
	
	/**
	 * 
	 * @param name The name of the structure
	 * @param structureTexture The texture of the structure
	 */
	public Structure(String name, Texture structureTexture) {
		this.name = name;
		Game.getRenderEngine().registerTexture(this.getTextureString(), structureTexture);
	}
	
	/**
	 * Enter into the building
	 * @return 
	 */
	public void enter() {
		Game.getGame().enter(realm);
	}
	
	public String getTextureString() {
		return this.name + ".texture"; 
	}
}
